package org.yefei.homeworkday22.supermarketsystem;

//会员类
public class Member {
	private String name;// 会员姓名
	private int cardNum;// 会员卡号
	private int integral;// 会员积分
	private String psw;// 会员卡密码
	private String date; // 会员开卡日期

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCardNum() {
		return cardNum;
	}

	public void setCardNum(int cardNum) {
		this.cardNum = cardNum;
	}

	public int getIntegral() {
		return integral;
	}

	public void setIntegral(int integral) {
		this.integral = integral;
	}

	public String getPsw() {
		return psw;
	}

	public void setPsw(String psw) {
		this.psw = psw;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public Member(String name, int cardNum, int integral, String psw, String date) {
		this.name = name;
		this.cardNum = cardNum;
		this.integral = integral;
		this.psw = psw;
		this.date = date;
	}

	public Member() {

	}

	@Override
	public String toString() {
		return "会员姓名是：" + name + "，卡号是：" + cardNum + "，积分剩余：" + integral + "，开卡日期是：" + date;
	}
}
